'use strict';

module.exports = appInfo => {
  const config = {};

  config.keys = appInfo.name + '_1490750627161_5967';
  
  config.middleware = [ 'errorHandler' ];
  
  config.mongoose = {
    client: {
      url: 'mongodb://127.0.0.1:27017/ems',
      options: { useUnifiedTopology: true },
      // mongoose global plugins, expected a function or an array of function and options
      plugins: [],
    }
  }
  
  config.jwt = {
    secret: '_1490750627161_5967'
  }

  return config;
};
